import request from '@/utils/request'

// 查询商品摆放空间列表
export function listProductPlacement(query) {
  return request({
    url: '/system/ProductPlacement/list',
    method: 'get',
    params: query
  })
}

// 查询商品摆放空间详细
export function getProductPlacement(id) {
  return request({
    url: '/system/ProductPlacement/' + id,
    method: 'get'
  })
}

// 新增商品摆放空间
export function addProductPlacement(data) {
  return request({
    url: '/system/ProductPlacement',
    method: 'post',
    data: data
  })
}

// 修改商品摆放空间
export function updateProductPlacement(data) {
  return request({
    url: '/system/ProductPlacement',
    method: 'put',
    data: data
  })
}

// 删除商品摆放空间
export function delProductPlacement(id) {
  return request({
    url: '/system/ProductPlacement/' + id,
    method: 'delete'
  })
}
